/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Hochschule Heilbronn
 * License Type: Academic
 */
package de.hhn.pmt.tour.u6;

public class Station extends de.hhn.pmt.tour.u6.POI {
	public Station() {
	}

	private java.util.Set this_getSet(int key) {
		if (key == de.hhn.pmt.tour.u6.ORMConstants.KEY_STATION_TOUR) {
			return ORM_tour;
		}

		return null;
	}

	private void this_setOwner(Object owner, int key) {
		if (key == de.hhn.pmt.tour.u6.ORMConstants.KEY_STATION_COORDINATES) {
			this.coordinates = (de.hhn.pmt.tour.u6.Coordinates) owner;
		}
	}

	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}

		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}

	};

	private Boolean typ;

	private java.util.Date[] abfahrtzeit;

	private java.util.Set ORM_tour = new java.util.HashSet();

	private de.hhn.pmt.tour.u6.Coordinates coordinates;

	public void setTyp(boolean value) {
		setTyp(new Boolean(value));
	}

	public void setTyp(Boolean value) {
		this.typ = value;
	}

	public Boolean getTyp() {
		return typ;
	}

	public void setAbfahrtzeit(java.util.Date[] value) {
		this.abfahrtzeit = value;
	}

	public java.util.Date[] getAbfahrtzeit() {
		return abfahrtzeit;
	}

	private void setORM_Tour(java.util.Set value) {
		this.ORM_tour = value;
	}

	private java.util.Set getORM_Tour() {
		return ORM_tour;
	}

	public final de.hhn.pmt.tour.u6.TourSetCollection tour = new de.hhn.pmt.tour.u6.TourSetCollection(
			this, _ormAdapter,
			de.hhn.pmt.tour.u6.ORMConstants.KEY_STATION_TOUR,
			de.hhn.pmt.tour.u6.ORMConstants.KEY_TOUR_STATION,
			de.hhn.pmt.tour.u6.ORMConstants.KEY_MUL_MANY_TO_MANY);

	public void setCoordinates(de.hhn.pmt.tour.u6.Coordinates value) {
		if (this.coordinates != value) {
			de.hhn.pmt.tour.u6.Coordinates lcoordinates = this.coordinates;
			this.coordinates = value;
			if (value != null) {
				coordinates.setStation(this);
			} else {
				lcoordinates.setStation(null);
			}
		}
	}

	public de.hhn.pmt.tour.u6.Coordinates getCoordinates() {
		return coordinates;
	}

	public String toString() {
		return super.toString();
	}

}
